﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using LeMigue.Scrum.Iterface.Service;
using LeMigue.TeamPortal.Base.Biz.Interface;
using LeMigue.TeamPortal.Base.View;
using LeMigue.Scrum.Iterface.Model;
using LeMigue.TeamPortal.Base.Service;

namespace LeMigue.TeamPortal.Base.Biz.Implement
{
    public class ProjectBiz : IProjectBiz
    {
        //TODO: implementar o unity
        private IProjectService _projectService = FactoryService.ProjectService;

        public IList<ProjectView> List(Team team)
        {
            return _projectService.List(team).Select(m => new ProjectView(m)).ToList();
        }
    }
}
